<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AdvanceFundRequestLanding.aspx.cs" Inherits="PHSRAG.Insight21.Agreements.AdvanceFundRequestLanding" %>
<%@ Register Assembly="PHSRAG.WebControls" Namespace="PHSRAG.WebControls" TagPrefix="cc2" %>
<%@ Register Assembly="PHSRAG.Insight21.InsightWebControls" Namespace="PHSRAG.Insight21.InsightWebControls" TagPrefix="cc1" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Advance Fund Request Landing Page</title>
    <link href="../Insight21.css" rel="stylesheet" type="text/css" />  
    <script type="text/javascript">                  
    function confirmdelete()
    {
        if (confirm("Are you sure you want to delete this request?")==true)
            return true;
        else
            return false;
    }   
    
    
    </script>
    <style type="text/css">
        .style1
        {
            width: 246px;
        }
        .style2
        {
            height: 31px;
            width: 246px;
        }
        .style3
        {
            width: 169px;
        }
        .style4
        {
            width: 200px;
        }
        .style5
        {
            width: 154px;
        }
        .style6
        {
            width: 365px;
        }
        .style7
        {
            height: 36px;
            width: 246px;
        }
        .style8
        {
            width: 246px;
            height: 18px;
        }
        .style9
        {
            width: 169px;
            height: 21px;
        }
        .style10
        {
            width: 200px;
            height: 21px;
        }
        .style11
        {
            width: 154px;
            height: 21px;
        }
        .style12
        {
            width: 365px;
            height: 21px;
        }
        .style13
        {
            width: 246px;
            height: 21px;
        }
    </style>
</head>
<body>
    <form id="AdvanceFundRequestForm" runat="server" > <!-- onsubmit="return AddListItemsToHiddenControl();">-->
        <table cellpadding="0" class="Container" style="width: 98%">
			<tr>
				<td>
                   <table class="Header">
						<tr>
							<td>
								<cc1:Header ID="header" runat="server" OnNavigate="OnHeaderNavigate" />
							</td>
						</tr>
						<tr>
							<td>
								<cc1:AgreementsSubNavigation ID="agreementsSubNavigation" runat="server" EnableOverviewNavigation="True"
									OnNavigate="OnSubNavigate" />
							</td>
						</tr>
						<tr>
							<td>
								<cc2:BreadCrumb ID="breadCrumb" runat="server" OnNavigate="OnNavigate" />
							</td>
						</tr>
					</table>
				   
				    <table id="dynamicTable" class="Invisible" cellspacing="10">
						<tr>
							<td>
								<cc2:ActivityIndicator ID="activityIndicator" runat="server" ContainerID="dynamicTable" />
							</td>
						</tr>
						<tr>
							<td>
								<cc2:Annunciator ID="annunciator" runat="server" ContainerID="dynamicTable" />
							</td>
						</tr>
					</table>
				    <table class="PlaceBar">
						<tr>
							<td align="left" class="PageName">
                                <asp:Label ID="pageName" runat="server"></asp:Label></td>
							<td align="center">
								&nbsp;</td>
							<td align="right" colspan="2">
                                <cc1:InsightDownloadBar ID="downloadBar" runat="server" OnDownloadToExcel="OnDownloadToExcel"
                                    OnDownloadToPDF="OnDownloadToPDF" OnFailedAction="OnDownloadFailed" SQLReportName="Stimulus_Reporting"
                                    useRootHost="true" />
                            </td>
						</tr>
					</table>
					<table width="100%" cellspacing="0">
						<tr>
							<td>
								<cc2:Pager ID="pagerAboveDatagrid" runat="server" OnFirstPage="OnFirstPage" OnLastPage="OnLastPage"
									OnNextPage="OnNextPage" OnPreviousPage="OnPreviousPage" />
							</td>
						</tr>
						<tr>
							<td>
								<asp:GridView ID="gvPIQuestionnaires" runat="server" Width="100%" CssClass="DataGrid" 
                                         AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
                                         PagerSettings-Visible="False" 
                                    OnSorting = "gvPIQuestionnaires_OnSorting" OnRowCreated="gvPIQuestionnaires_OnRowCreated"
                                         OnRowDataBound="gvPIQuestionnaires_RowDataBound" 
                                    onrowcommand="gvPIQuestionnaires_RowCommand">
                                        <HeaderStyle CssClass="DataGridHeader" />
                                        <FooterStyle CssClass="DataGridHeader" />
                                        <AlternatingRowStyle CssClass="DataGridAlternatingItem" />   
<PagerSettings Visible="False"></PagerSettings>

                                        <RowStyle CssClass="DataGridItem" />
									<Columns>
                                        <asp:BoundField DataField="DateSubmitted" HeaderText="Submit Date" 
                                            SortExpression="DateSubmitted" >
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                            <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="SubmittedBy" HeaderText="Submitted By" 
                                            SortExpression="SubmittedBy" >
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                            <ItemStyle Width="150px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="DateLastUpdate" HeaderText="Last Updated" 
                                            SortExpression="" >
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                            <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="130px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="DaysToComplete" HeaderText="Days to Complete" 
                                            SortExpression="" >
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="90px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="PI" HeaderText="PI" SortExpression="PILastName" >
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="Sponsor" HeaderText="Sponsor" 
                                            SortExpression="SponsorName" >
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="Hospital" HeaderText="Hospital" 
                                            SortExpression="Institution" >
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                            <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="100px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="COS" HeaderText="COS" SortExpression="ChiefCode" >
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="RequestStatus" HeaderText="Request Status" 
                                            SortExpression="">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                        </asp:BoundField>
                                        <asp:TemplateField HeaderText="Action">
                                            <ItemTemplate>
                                                <asp:ImageButton ID="ibView" runat="server" Visible="true" ImageUrl= '<%# Bind("ImageUrl") %>' ToolTip="" CommandName="View" CommandArgument= '<%# Bind("PropNumber") %>' />
                                                <asp:ImageButton ID="ibDelete" runat="server" Visible="true" CommandName="DeleteProp" CommandArgument= '<%# Bind("PropNumber") %>' />
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="140px" />
                                        </asp:TemplateField>                                        
                                        <asp:TemplateField HeaderText="CreatedBy" Visible="false">
                                            <ItemTemplate>
                                                <asp:Label ID="CreatedBy" runat="server" Visible="true" Text='<%# Bind("CreatedBy") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>                                    
                                    </Columns>
									</asp:GridView>
                                </td>
						</tr>
						<tr>
							<td style="height: 16px">
								<cc2:Pager ID="pagerBelowDatagrid" runat="server" OnFirstPage="OnFirstPage" OnLastPage="OnLastPage"
									OnNextPage="OnNextPage" OnPreviousPage="OnPreviousPage" />
							</td>
						</tr>
					</table> 
					<table width="100%">
						<tr>
							<td align="right">
								<asp:ImageButton ID="imgBtnRequestAdvance" runat="server" CommandName="RequestAdvancAccount"
                                                 ImageUrl="~/Images/b_request_advance_account.gif" 
                                    OnClick="imgBtnRequestAdvance_Click" />
							</td>
						</tr>						
					</table>                               
				</td>
            </tr>
        </table>                            				
    </form>
</body>
</html>
